home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group00a.txt
/
000060_icon-group-sender _Wed Apr 12 09:23:10 2000.msg
< prev
next >
Wrap
Internet Message Format
|
2001-01-03
|
1KB
Return-Path: <icon-group-sender>
Received: (from root@localhost)
by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) id JAA05391
for icon-group-addresses; Wed, 12 Apr 2000 09:22:02 -0700 (MST)
Message-Id: <200004121622.JAA05391@baskerville.CS.Arizona.EDU>
Date: Tue, 11 Apr 2000 23:23:36 -0400 (EDT)
From: Taybin Rutkin <trutkin@black.clarku.edu>
To: icon-group@optima.CS.Arizona.EDU
Subject: Idol function pointers
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Status: RO
I hope this is the right forum to discuss Idol...
How would I pass a method as a variable? I'm trying to create an event
system. The call I'm using is
edges$watch(vertices$E_Update)
watch is the function that links the method to a list of procedures. I'm
trying to call a method in a specific object. vertices is the instance
and E_Update is the method that should be called at a later date. The
code works fine if I use a regular procedure. I poked through the Icon
output but the code it generated for that line was:
edges.__m.watch(edges,vertices.__m.E_Update(vertices))
I mostly understand that line, so I guess I need a way to remove the
vertices arguement at the end.
Any hints?
Taybin
Taybin Rutkin -- trutkin@black.clarku.edu